package com.windea.study.kotlin.android.hotfix

import android.annotation.*
import android.os.*
import androidx.appcompat.app.*
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
	private val textView by lazy { text_view }
	
	@SuppressLint("SetTextI18n")
	override fun onCreate(savedInstanceState: Bundle?) {
		super.onCreate(savedInstanceState)
		setContentView(R.layout.activity_main)
		
		textView.text = "有Bug的版本"
		//textView.text = "修复了Bug的版本"
		//textView.setTextColor(Color.RED)
	}
	
	//为了及时看到效果
	override fun onDestroy() {
		super.onDestroy()
		Process.killProcess(Process.myPid())
	}
}
